package yxy.game.pm2.active.module.sdk.shengye;

import org.joda.time.DateTimeConstants;
import yxy.game.pm2.bean.timeline.FutureRunnable;

public class ShengYeSubscribeFuture extends FutureRunnable {

	@Override
	public void init() {
		handle();
	}

	@Override
	public void tick() {
		handle();
	}

	@Override
	public long period() {
		return DateTimeConstants.MILLIS_PER_MINUTE * 10;// 10分钟一刷
//		return DateTimeConstants.MILLIS_PER_SECOND * 1;// 10分钟一刷
	}

	private void handle() {
		try {
			new ShengYeSubscribeHandle().update();
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
}
